home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / dsdefine.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  5.1 KB  |  129 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'DSDefine.pas' rev: 3.00
  6.  
  7. #ifndef DSDefineHPP
  8. #define DSDefineHPP
  9. #include <DsgnIntf.hpp>
  10. #include <DBTables.hpp>
  11. #include <Db.hpp>
  12. #include <Buttons.hpp>
  13. #include <ExtCtrls.hpp>
  14. #include <StdCtrls.hpp>
  15. #include <Forms.hpp>
  16. #include <Controls.hpp>
  17. #include <Graphics.hpp>
  18. #include <Classes.hpp>
  19. #include <Messages.hpp>
  20. #include <Windows.hpp>
  21. #include <SysUtils.hpp>
  22. #include <SysInit.hpp>
  23. #include <System.hpp>
  24.  
  25. //-- user supplied -----------------------------------------------------------
  26.  
  27. namespace Dsdefine
  28. {
  29. //-- type declarations -------------------------------------------------------
  30. class DELPHICLASS TDefineField;
  31. class PASCALIMPLEMENTATION TDefineField : public Forms::TForm 
  32. {
  33.     typedef Forms::TForm inherited;
  34.     
  35. __published:
  36.     Stdctrls::TButton* OkBtn;
  37.     Stdctrls::TButton* CancelBtn;
  38.     Stdctrls::TButton* HelpBtn;
  39.     Stdctrls::TGroupBox* FieldGroup;
  40.     Stdctrls::TLabel* ComponentNameLabel;
  41.     Stdctrls::TLabel* FieldNameLabel;
  42.     Stdctrls::TEdit* ComponentNameEdit;
  43.     Stdctrls::TEdit* FieldNameEdit;
  44.     Stdctrls::TComboBox* FieldTypeList;
  45.     Stdctrls::TLabel* Label2;
  46.     Stdctrls::TEdit* SizeEdit;
  47.     Extctrls::TRadioGroup* FieldKind;
  48.     Stdctrls::TGroupBox* LookupGroup;
  49.     Stdctrls::TComboBox* DatasetList;
  50.     Stdctrls::TLabel* DatasetLabel;
  51.     Stdctrls::TComboBox* KeyFieldsList;
  52.     Stdctrls::TComboBox* LookupKeysList;
  53.     Stdctrls::TComboBox* ResultFieldList;
  54.     Stdctrls::TLabel* KeyFieldsLabel;
  55.     Stdctrls::TLabel* LookupKeysLabel;
  56.     Stdctrls::TLabel* ResultFieldLabel;
  57.     Stdctrls::TLabel* FieldTypeLabel;
  58.     void __fastcall FieldNameEditChange(System::TObject* Sender);
  59.     void __fastcall FormCreate(System::TObject* Sender);
  60.     void __fastcall OkBtnClick(System::TObject* Sender);
  61.     void __fastcall DatasetListDropDown(System::TObject* Sender);
  62.     void __fastcall LookupKeysListDropDown(System::TObject* Sender);
  63.     void __fastcall KeyFieldsListDropDown(System::TObject* Sender);
  64.     void __fastcall ResultFieldListDropDown(System::TObject* Sender);
  65.     void __fastcall FieldKindClick(System::TObject* Sender);
  66.     void __fastcall DatasetListChange(System::TObject* Sender);
  67.     void __fastcall HelpBtnClick(System::TObject* Sender);
  68.     
  69. private:
  70.     Db::TDataSet* FDataset;
  71.     Dsgnintf::TFormDesigner* FDesigner;
  72.     Db::TDataSetDesigner* FDSDesigner;
  73.     bool __fastcall GetCalculated(void);
  74.     System::AnsiString __fastcall GetComponentName(void);
  75.     System::TMetaClass* __fastcall GetFieldClass(void);
  76.     System::AnsiString __fastcall GetFieldName(void);
  77.     bool __fastcall GetLookup(void);
  78.     Db::TDataSet* __fastcall GetLookupDataset(void);
  79.     System::AnsiString __fastcall GetKeyFields(void);
  80.     System::AnsiString __fastcall GetLookupKeyFields(void);
  81.     System::AnsiString __fastcall GetLookupResultField(void);
  82.     void __fastcall GetLookupFields(Classes::TStrings* Items);
  83.     int __fastcall GetSize(void);
  84.     void __fastcall SetCalculated(bool Value);
  85.     void __fastcall SetComponentName(const System::AnsiString Value);
  86.     void __fastcall SetDataset(Db::TDataSet* Value);
  87.     void __fastcall SetFieldClass(System::TMetaClass* Value);
  88.     void __fastcall SetFieldName(const System::AnsiString Value);
  89.     void __fastcall SetLookup(bool Value);
  90.     void __fastcall SetSize(int Value);
  91.     void __fastcall UpdateLookupControls(void);
  92.     
  93. public:
  94.     __property bool Calculated = {read=GetCalculated, write=SetCalculated, nodefault};
  95.     __property bool Lookup = {read=GetLookup, write=SetLookup, nodefault};
  96.     __property System::AnsiString ComponentName = {read=GetComponentName, write=SetComponentName};
  97.     __property System::TMetaClass* FieldClass = {read=GetFieldClass, write=SetFieldClass};
  98.     __property System::AnsiString FieldName = {read=GetFieldName, write=SetFieldName};
  99.     __property int Size = {read=GetSize, write=SetSize, nodefault};
  100.     __property Db::TDataSet* LookupDataset = {read=GetLookupDataset};
  101.     __property System::AnsiString KeyFields = {read=GetKeyFields};
  102.     __property System::AnsiString LookupKeyFields = {read=GetLookupKeyFields};
  103.     __property System::AnsiString LookupResultField = {read=GetLookupResultField};
  104.     __property Db::TDataSet* Dataset = {read=FDataset, write=SetDataset};
  105.     __property Dsgnintf::TFormDesigner* Designer = {read=FDesigner, write=FDesigner};
  106.     __property Db::TDataSetDesigner* DSDesigner = {read=FDSDesigner, write=FDSDesigner};
  107. public:
  108.     /* TCustomForm.Create */ __fastcall virtual TDefineField(Classes::TComponent* AOwner) : Forms::TForm(
  109.         AOwner) { }
  110.     /* TCustomForm.CreateNew */ __fastcall TDefineField(Classes::TComponent* AOwner, int Dummy) : Forms::
  111.         TForm(AOwner, Dummy) { }
  112.     /* TCustomForm.Destroy */ __fastcall virtual ~TDefineField(void) { }
  113.     
  114. public:
  115.     /* TWinControl.CreateParented */ __fastcall TDefineField(HWND ParentWindow) : Forms::TForm(ParentWindow
  116.         ) { }
  117.     
  118. };
  119.  
  120. //-- var, const, procedure ---------------------------------------------------
  121. extern PACKAGE TDefineField* DefineField;
  122.  
  123. }    /* namespace Dsdefine */
  124. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  125. using namespace Dsdefine;
  126. #endif
  127. //-- end unit ----------------------------------------------------------------
  128. #endif    // DSDefine
  129.